package org.jeecg.modules.monitoring.j_monitoring.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.monitoring.j_monitoring.entity.RealVirtualHost;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 虚拟主机
 * @Author: xiaoyq
 * @Date:   2023-11-15
 * @Version: V1.0
 */
public interface RealVirtualHostMapper extends BaseMapper<RealVirtualHost> {
    /**
     * 根据群集id和ip查询虚拟主机
     * @param clusterId
     * @param ip
     * @return
     */
    RealVirtualHost selectByClusterIdAndIp(@Param("clusterId") String clusterId, @Param("ip") String ip);

    /**
     * 根据群集Id获得虚拟主机列表
     * @param clusterId
     * @return
     */
    List<RealVirtualHost> selectByClusterId(@Param("clusterId") String clusterId);

    /**
     * 获取所有
     * @return
     */
    List<RealVirtualHost> selectAll();
}
